<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <%@include file="/WEB-INF/pages/header.jsp"%>
    <style>
        #noticeTable thead th{
            text-align: center;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="panel panel-default">
        <div class="panel-body">
            <form class="form-inline" id="condition" >
                <div class="form-group">
                    <label>标题:</label>
                    <input type="text" style="width:150px" class="form-control" name="noticeTitle" placeholder="输入标题...">
                </div>
                <div class="form-group">
                    <label>发布日期:</label>
                    <input type="text" style="width:180px" class="form-control" name="noticePubDate">
                </div>
                <button  type="button" class="btn btn-primary" onclick="search()">查询</button>
            </form>
        </div>
    </div>
    <div id="toolbar" style="margin-bottom:10px;">
        <a class="btn btn-info" onclick="addNoticeInfo()"><i class="glyphicon glyphicon-plus"></i>&nbsp;发布公告</a>
    </div>
    <table data-toggle="table"
           data-striped="true"
           class="text-center"
           data-striped="true"
           data-toolbar="#toolbar"
           data-toolbar-align="right"
           data-url="${ctx}/director/noticeInfo/searchNotice"
           id="noticeTable"
           data-pagination="true"
           data-side-pagination="server"
           data-page-size="8">
        <thead>
        <tr>
            <th data-field="noticeId">序号</th>
            <th data-field="noticeTitle">标题</th>
            <th data-field="noticeContent">发布内容</th>
            <th data-field="noticePubDate">创建时间</th>
            <th data-field="noticeId" data-formatter="formatOpt">操作</th>
        </tr>
        </thead>
    </table>
</div>


<%--发布公告--%>
<div id="addNoticeInfo">
    <form class="form-horizontal" id="addNoticeInfo_form">
        <div class="form-group">
            <label class="col-md-3 control-label">标题：</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="noticeTitle">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-3 control-label">公告内容：</label>
            <div class="col-md-8">
                <textarea name="noticeContent" class="form-control"></textarea>
            </div>
        </div>
    </form>
</div>


<%@include file="/WEB-INF/pages/footer.jsp"%>
<script src="${ctx}/res/js/noticeInfo.js"></script>
</body>
</html>
